<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<meta name="decorator" content="sysDefault"/>
</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-12" style="margin-left:-15px;">
				<div class="panel panel-default">
				  <div class="panel-heading">
				    <h3 class="panel-title">
				    	详细日志
						<a class="btn btn-default btn-sm pull-right" href="javascript:void(0)" onclick="history.go(-1)">返回</a>
				    </h3>
				  </div>
				  	<table class="table table-bordered">
					  <tbody>
					  	<tr>
					  		<td class="text-right" style="width: 20%"><strong>日志类别:</strong></td>
					  		<td><ossp:value dictType="LOGTYPE" key="${sysLog.type}"></ossp:value></td>
					  	</tr>
					  	<tr>
					  		<td class="text-right" style="width: 20%"><strong>日志操作时间:</strong></td>
					  		<td><fmt:formatDate value="${sysLog.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>创建人:</strong></td>
					  		<td>${sysLog.operateName}</td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>操作IP:</strong></td>
					  		<td>${sysLog.ip}</td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>操作URI:</strong></td>
					  		<td>${sysLog.uri}</td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>操作方式:</strong></td>
					  		<td>${sysLog.method}</td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>操作提交内容:</strong></td>
					  		<td>
						  		<c:if test="${fn:length(sysLog.parameter) > 100}">
						  			<textarea cols="100" rows="4">${sysLog.parameter}</textarea>					  			
						  		</c:if>
						  		<c:if test="${fn:length(sysLog.parameter) <= 100}">
						  			${sysLog.parameter}				  			
						  		</c:if>
					  		</td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>用户代理:</strong></td>
					  		<td>${sysLog.userAgent}</td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>异常信息:</strong></td>
					  		<td>
					  		<c:if test="${sysLog.exception!=null}">
					  			<textarea cols="100" rows="20">${sysLog.exception}</textarea>
					  		</c:if>
					  		</td>
					  	</tr>
					  </tbody>
					</table>
				  <div class="panel-footer"></div>
				</div>			
			</div>
		</div>
	</div>
</body>
</html>